import React from 'react'
import { createAppContainer } from 'react-navigation'
import { createStackNavigator } from 'react-navigation-stack'

import Device from './Device'
import index from './index'
// import Search from './pages/Search'
import Service from './Service'
import Characteristic from './Characteristic'
import Operation from './Operation'
import ToFAQ from './pages/ToFAQ'
import Asr from './bdasr/BaiduAsrScreen'
import Wakeup from './bdasr/BaiduWakeUpScreen'

const AppNavigator = createStackNavigator({
  index,
  Device,
  Service,
  Characteristic,
  Operation,
  ToFAQ,
  Asr,
  Wakeup
}, {
    defaultNavigationOptions: {
      headerTitleStyle: {
        fontSize: 18,
      },
      headerBackTitle: '返回',
    },
  })

export default createAppContainer(AppNavigator)
